<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/common/common.jsp" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"> 
  <head>
    <base href="<%=basePath%>" />
    <title>Allocator Data Upload Information</title>
    <script type="text/javascript">
		var path = "<%=basePath%>";
	</script>
	<meta http-equiv="pragma" content="no-cache" />
	<meta http-equiv="cache-control" content="no-cache" />
	<meta http-equiv="expires" content="0" />    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3" />
	<meta http-equiv="description" content="This is my page" />
	<link rel="stylesheet" type="text/css" href="<%=basePath%>beshs/css/content.css" />
	<link type="text/css" href="<%=basePath%>beshs/css/frame_style.css" rel="stylesheet" />
	<link type="text/css" href="<%=basePath%>beshs/css/element_style.css" rel="stylesheet" />
	<script type="text/javascript" src="<%=basePath%>resources/jquery/jquery-1.7.2.min.js"></script>
	<!-- 系统通用资源 -->
	<jsp:include page="/resources/resource-refer/common-resource-reference.jsp" />
	<!-- 用户访问菜单路径 -->
	<jsp:include page="/resources/usertrace/common-uservisit-reference.jsp" />
  </head>
  <body>
  	<div class="content_all">
  		<!--导航条-->
  		<div class="insertinfo_table">
		  	<table width="100%" border="0" cellspacing="0" cellpadding="0">
		  		<tr>
		  			<th style="text-align: center;" colspan="6" >Allocator Data Upload Information</th>
		  		</tr>
		  		<tr>
		        	<th>File Name：</th>
		          	<td><s:property value="meterDataFile.fileName" />
		          	</td>
		          	<th>File Size：</th>
		          	<td>
		          		<s:if test="meterDataFile.fileSize<1024">
		          			<s:text name="fmt.number.precision.zero">
					        	<s:param value='meterDataFile.fileSize' />
					        </s:text>Byte
		          		</s:if>
		          		<s:elseif test="meterDataFile.fileSize>1024 && meterDataFile.fileSize<1024*1024">
		          			<s:text name="fmt.number.precision.three">
					          	<s:param value='meterDataFile.fileSize/1024' />
					        </s:text>KB
		          		</s:elseif>
		          		<s:else>
		          			<s:text name="fmt.number.precision.three">
					          	<s:param value='meterDataFile.fileSize/1024/1024' />
					       	</s:text>MB
		          		</s:else>
		          	</td>
		          	<th>Record Quantity：</th>
		        	<td><s:property value='meterDataFile.recordNum' /></td>
		        </tr>
		  		<tr>
		  			<th>Allocator Quantity：</th>
		        	<td><s:property value='meterDataFile.meterNum' /></td>
		        	<th>Successful Upload Quantity：</th>
		        	<td><s:property value='meterDataFile.successNum' /></td>
		        	<th>Upload Ratio：</th>
		        	<td><s:property value="meterDataFile.uploadPercent" />%</td>
		        </tr>
		        <tr>
		        	<th>Submitters：</th>
		        	<td><s:property value="meterDataFile.uploadMan" /></td>
		       	 	<th>Upload Time：</th>
		        	<td>
		          		<s:date name='meterDataFile.uploadDate' format='yyyy-MM-dd HH:mm:ss' nice='false' />
		          	</td> 
		        	<td style="border:none" colspan="2">
          				<script type="text/javascript">
          					$(function() {
          						$("input[name='goBack']").click(function() {
          							history.go(-1);
          						});
          					})
          				</script>
            			<input name="goBack" type="reset" value="Return" class="s_btn"/></td>
		        </tr>
		    </table>
		    <table width="100%" border="0" cellspacing="0" cellpadding="0">
		    	<tr>
		        	<th>Upload Data：</th>
		        	<s:if test="meterDataFile.saveUrl.indexOf('.xml')>0">
		        		<td style="white-space: normal;">
		        			<p><s:property escape='true' value='txtContent' /></p>
		        		</td>
		        	</s:if>
		        	<s:else>
			        	<td>
				        	<p><s:property escape='false' value='txtContent' /></p>
				        </td>
		        	</s:else>
		        </tr> 
		    </table>
		</div>
	</div>
	<div class="clear"></div>
  </body>
</html>
